export function toke(){
  let token=localStorage.getItem("token")
  let loginBox=document.querySelectorAll(".login-header")
  let loginIfo=document.querySelector(".info")
  let outInfo=document.querySelector(".out")
function autoLogin(){
  
  console.log(loginBox);
  console.log(token);
  if(token){
    loginBox[0].style.display="none"
    loginBox[1].style.display="block"
    loginIfo.innerHTML=`欢迎亲爱的 `+localStorage.getItem("username")
  }

}
autoLogin()
outInfo.onclick=function(){
  localStorage.clear()
  loginBox[1].style.display="none"
  loginBox[0].style.display="block"
}
}